package com.ruoyi.control.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import com.ruoyi.position.domain.Ryss;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.control.mapper.RyssHistoryMapper;
import com.ruoyi.position.domain.RyssHistory;
import com.ruoyi.control.service.IRyssHistoryService;

/**
 * 人员定位-实时数据Service业务层处理
 * 
 * @author hcc
 * @date 2024-11-12
 */
@Service
public class RyssHistoryServiceImpl extends ServiceImpl<RyssHistoryMapper, RyssHistory> implements IRyssHistoryService //修改
{
    @Autowired
    private RyssHistoryMapper ryssHistoryMapper;

    /**
     * 查询人员定位-实时数据
     * 
     * @param positionRealtimeId 人员定位-实时数据主键
     * @return 人员定位-实时数据
     */
    @Override
    public RyssHistory selectRyssHistoryByPositionRealtimeId(String positionRealtimeId)
    {
        return ryssHistoryMapper.selectRyssHistoryByPositionRealtimeId(positionRealtimeId);
    }

    /**
     * 查询人员定位-实时数据列表
     * 
     * @param ryssHistory 人员定位-实时数据
     * @return 人员定位-实时数据
     */
    @Override
    public List<RyssHistory> selectRyssHistoryList(RyssHistory ryssHistory)
    {
        return ryssHistoryMapper.selectRyssHistoryList(ryssHistory);
    }

    /**
     * 新增人员定位-实时数据
     * 
     * @param ryssHistory 人员定位-实时数据
     * @return 结果
     */
    @Override
    public int insertRyssHistory(RyssHistory ryssHistory)
    {
        return ryssHistoryMapper.insertRyssHistory(ryssHistory);
    }

    /**
     * 修改人员定位-实时数据
     * 
     * @param ryssHistory 人员定位-实时数据
     * @return 结果
     */
    @Override
    public int updateRyssHistory(RyssHistory ryssHistory)
    {
        return ryssHistoryMapper.updateRyssHistory(ryssHistory);
    }

    /**
     * 批量删除人员定位-实时数据
     * 
     * @param positionRealtimeIds 需要删除的人员定位-实时数据主键
     * @return 结果
     */
    @Override
    public int deleteRyssHistoryByPositionRealtimeIds(String[] positionRealtimeIds)
    {
        return ryssHistoryMapper.deleteRyssHistoryByPositionRealtimeIds(positionRealtimeIds);
    }

    /**
     * 删除人员定位-实时数据信息
     * 
     * @param positionRealtimeId 人员定位-实时数据主键
     * @return 结果
     */
    @Override
    public int deleteRyssHistoryByPositionRealtimeId(String positionRealtimeId)
    {
        return ryssHistoryMapper.deleteRyssHistoryByPositionRealtimeId(positionRealtimeId);
    }

    @Override
    public RyssHistory selectRyssHistoryByPositionPersonCode(String positionPersonCode) {
        return ryssHistoryMapper.selectRyssHistoryByPositionPersonCode(positionPersonCode);
    }

    @Override
    public List<RyssHistory> getDutyLeaderList(RyssHistory ryssHistory) {
        return ryssHistoryMapper.getDutyLeaderList(ryssHistory);
    }

}
